package net.sinmetal.twitcockpit.util;

import java.util.Calendar;
import java.util.Date;
import java.util.TimeZone;

import org.slim3.util.TimeZoneLocator;

/**
 * DateUtilDelegate
 *
 * デフォルトのDateUtilDelegate
 *
 * @author Sinmetal
 *
 */
public class DateUtilDelegate implements DateUtilInterface {

    private static TimeZone timezone = TimeZoneLocator.get();

    @Override
    public Date getNow() {
        Calendar calendar = Calendar.getInstance();
        return calendar.getTime();
    }

    @Override
    public Calendar getLocaleCalendar() {
        return Calendar.getInstance(timezone);
    }
}
